home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 2
/
Aminet AMIGA CDROM (1994)(Walnut Creek)[Feb 1994][W.O. 44790-1].iso
/
Aminet
/
mus
/
play
/
DES_Tracker2_00.lha
/
DTL
/
rexx
/
Play.rexx
< prev
Wrap
OS/2 REXX Batch file
|
1993-12-17
|
1KB
|
61 lines
/*********************************************************/
/* This is an example program called Play.Rexx that will */
/* simply load and play the song you specify. If you */
/* don't specify a song to play, then a req.library file */
/* requester will pop up so you can select a song. */
/* */
/* Designed and written by Darren Schebek */
/* Copyright (c)1992 by Darren Schebek */
/* */
/* Set tab size to 3 for this file. :) */
/*********************************************************/
if ~show('l','destracker.library') then
if ~addlib('destracker.library',-5,-30,0) then
do
say "Couldn't find destracker.library."
exit 5
end
If arg(1) ~= '' then
do
if ~exists(arg(1)) then
do
say '*** Could not locate "'arg(1)'".'
exit
end
end
a1 = right(arg(1),1)
if arg(1) ~= '' && a1 ~= ':' && a1 ~= '/' then
do
r = DES_LoadModule(arg(1))
if left(r,3) = '***' then
do
say r
exit
end
DES_BeginPlay()
exit
end
if ~show('l','req.library') then
if ~addlib('req.library',-5,-60,2) then
do
say "Couldn't find req.library."
exit 5
end
call pragma('Directory',arg(1))
name = filereq('Select a song to play...')
if name ~= '' then
do
r = DES_LoadModule(name)
if left(r,3) = '***' then
do
say r
exit
end
DES_BeginPlay()
end